/**
 * 
 */
package com.google.code.sip.ucenter.ws.dto;

import java.util.LinkedHashMap;
import java.util.Map;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import com.google.code.sip.ucenter.model.CreditRuleCycleType;

/**
 * 积分规则传输类
 * 
 * @author Liuye
 * 
 */
@XmlRootElement(name = "creditRule")
@XmlSeeAlso(BaseDto.class)
@XmlAccessorType(XmlAccessType.FIELD)
@SuppressWarnings("serial")
public class CreditRuleDto extends BaseDto {
	/**
	 * 积分名称
	 */
	private String name;
	/**
	 * 积分动作
	 */
	private String action;
	/**
	 * 周期类型：一次,每天,不限
	 */
	private CreditRuleCycleType cycleType;
	/**
	 * 间隔时间
	 */
	private String cycleTime;
	/**
	 * 奖励次数
	 */
	private int rewardNum;

	private Map<String, Integer> amounts = new LinkedHashMap<String, Integer>();

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the action
	 */
	public String getAction() {
		return action;
	}

	/**
	 * @param action
	 *            the action to set
	 */
	public void setAction(String action) {
		this.action = action;
	}

	/**
	 * @return the cycleType
	 */
	public CreditRuleCycleType getCycleType() {
		return cycleType;
	}

	/**
	 * @param cycleType
	 *            the cycleType to set
	 */
	public void setCycleType(CreditRuleCycleType cycleType) {
		this.cycleType = cycleType;
	}

	/**
	 * @return the cycleTime
	 */
	public String getCycleTime() {
		return cycleTime;
	}

	/**
	 * @param cycleTime
	 *            the cycleTime to set
	 */
	public void setCycleTime(String cycleTime) {
		this.cycleTime = cycleTime;
	}

	/**
	 * @return the rewardNum
	 */
	public int getRewardNum() {
		return rewardNum;
	}

	/**
	 * @param rewardNum
	 *            the rewardNum to set
	 */
	public void setRewardNum(int rewardNum) {
		this.rewardNum = rewardNum;
	}

	public Map<String, Integer> getAmounts() {
		return amounts;
	}

	public void setAmounts(Map<String, Integer> creditRuleAmounts) {
		this.amounts = creditRuleAmounts;
	}
}
